#if !defined(AFX_PARTSPRINGVIEW_H__07C298AD_C433_45F5_99ED_561AA05F6097__INCLUDED_)
#define AFX_PARTSPRINGVIEW_H__07C298AD_C433_45F5_99ED_561AA05F6097__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PartSpringView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPartSpringView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "PHSShareRes.h"
#include "PartSpring.h"
#include "FormViewEx.h"

class CPartSpringView : public CFormViewEx
{
protected:
	CPartSpringView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPartSpringView)

public:
	void LinkToObject(PartSpring* pSpring){
		m_pObject = pSpring;
	}

// Form Data
public:
	//{{AFX_DATA(CPartSpringView)
	enum { IDD = IDD_PART_SPRING };
	CString	m_strCustomID;
	CString	m_strName;
	CString	m_strSpec;
	CString	m_strSpringNum;
	CString	m_strAssemblyLoad;
	CString	m_strDim;
	CString	m_strHotDisplacement;
	CString	m_strNutDia;
	CString	m_strReduce;
	CString	m_strWeight;
	CString	m_strWorkLoad;
	CString	m_strInseriesdisplacement;
	CString	m_strTemperature;
	CString	m_strClgg;
	//}}AFX_DATA

	CString m_strTable;
private:
	PartSpring* m_pObject;
	BOOL m_bIsFirstVisible;

// Attributes
public:
	void LoadBH();
	void LoadDH();
	void LoadOthers();
	void LoadNutDia();
	void LoadSpec();

	void UpDateObjectData();
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPartSpringView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CPartSpringView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CPartSpringView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnChangeWorkloadEdit();
	afx_msg void OnSelchangeSpringnumCombo();
	afx_msg void OnSelchangeNutdiaCombo();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnSelchangeSpecCombo();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PART1_H__07C298AD_C433_45F5_99ED_561AA05F6097__INCLUDED_)
